<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%  String serverPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
     session.setAttribute("serverPath", serverPath);
%>
<!DOCTYPE html>
<html>
<head>
		<meta charset="utf-8" />
		<title>${sys.web_name}</title>
	    <link href="${path}/statics/css/front/index.css" rel="stylesheet" />
	    <link rel="stylesheet" href="${path}/statics/layui/css/layui.css">
</head>
<body>
		<%@include file="top.jsp"%>
          
          <!--文章分区-->
            <div class="articleType">
            	<!--文章分区-->
            	<div class="typeListLeft">
            		  <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type1.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type1.id}&typeName=${type1.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList1}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type1.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>
	            
            	</div>
            	
            	<div class="typeList">
                  <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type2.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type2.id}&typeName=${type2.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList2}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type2.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>         		
            	</div>
            	
            	<div class="typeList">
                   <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type3.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type3.id}&typeName=${type3.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList3}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type3.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>
            	<div style="clear: left;"></div>
            </div>   
            
            <div class="articleType">
            	<!--文章分区 第二行-->
            	<div class="typeListLeft">
            		  <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type4.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type4.id}&typeName=${type4.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList4}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type4.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>
            	</div>
            	
            	<div class="typeList">
                  <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type5.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type5.id}&typeName=${type5.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList5}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type5.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>  		
            	</div>
            	
            	<div class="typeList">
                   <!--标题-->
	            	  <div class="typeTitle">
	            	  	 <span class="titleSpan">${type6.name}</span>
	            	  	 <a href="${path}/frontCtl/toList?typeId=${type6.id}&typeName=${type6.name}" class="more" target="_blank">更多>></a>
	            	  </div>
	            	   <!--内容-->
	            	  <div class="typeMain">
	            	  	<c:forEach items="${artList6}" var="art">
	            	  	<div><a href="${path}/frontCtl/toInfo?artId=${art.id}&typeName=${type6.name}" target="_blank">${art.title}</a></div>
	            	  	</c:forEach>
	            	  </div>       		
            	</div>
            	<div style="clear: left;"></div>
            </div>   
            <div style="clear: left;"></div>
            
              <%@include file="bottom.jsp"%>
			  
			  
		<script type="text/javascript" src="${path}/statics/js/jquery-1.8.3.js"></script>
		<script src="${path}/statics/layui/layui.js"></script>
		<script type="text/javascript">
			layui.use(['laydate', 'laypage','element','jquery','layer','upload',"table"], function(){
			  var element = layui.element;
			  var $ = layui.jquery;
			  var layer = layui.layer;
			  var upload = layui.upload;
			  var table = layui.table;
			  var laydate = layui.laydate //日期
			  ,laypage = layui.laypage //分页
			  
			  
			  //安全退出
			  $("#logOutBtn").click(function(){
			  	   layer.confirm('您确定要退出吗?', function(index){
			  		  location.replace("${path}/frontCtl/logOut");
			  		  layer.close(index);
			  		});  
			  });
			  
		
			});
		
		
		
		
		
		</script>	
		
	</body>
</html>